#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

void sort(int* arr,int count){
	for (int i = 0; i < count; i++) {
		for (int j = 1; j < count; j++) {
			if (arr[j - 1] > arr[j]) {
				int tem = arr[j - 1];
				arr[j - 1] = arr[j];
				arr[j] = tem;
			}

		}
	}

}
int main() {
	int arr[] = { 11, 2, 23, 43, 5 };
	int count = sizeof(arr) / sizeof(arr[0]);

	for (int i = 0; i < count; i++) {
		printf("%d\n", arr[i]);
		//intf("\n");
	}
	printf("\n");
	sort(arr, count);

	for (int i = 0; i < count; i++) {
		printf("%d\n", arr[i]);
	}
}